class Wafflets {
    
    static function main() {
        var width = 800;
        var height = 600;
        var terrain = new Terrain(width, height);
        var player1 = new Entity(Std.int(width/4), Std.int(height/2), Entity.RED);
        var player2 = new Entity(Std.int(width/4*3), Std.int(height/2), Entity.BLUE);

        terrain.render(0,0);
        var mc: flash.display.MovieClip = flash.Lib.current;
        mc.width = 400;
        mc.height = 300;
        player1.render(0,0);
        player2.render(0,0);
    }

    static function drawWafflet(x: Int, y: Int) {
        var color = 0xFFCC00;
        var w = 50;
        var h = 50;
        var mc: flash.display.MovieClip = flash.Lib.current;
	    mc.graphics.beginFill(color);
	    mc.graphics.moveTo(x-w,y-h);
	    mc.graphics.lineTo(x+w,y-h);
	    mc.graphics.lineTo(x+w,y+h);
	    mc.graphics.lineTo(x-w,y+h);
	    mc.graphics.endFill();
    }
	
}

